<!DOCTYPE html>
<!--6、求字符串数组每一个字符的长度，存储到新数组-->
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var num="12,415,62,6596,26526,2";
			var num2=num.split(",");
			document.write("数组："+num2);
			document.write("<br /><br />");
			var new1=[];
			for (var i in num2) {
				new1.push(num2[i].length);
			}
			document.write("数组new："+new1);
		</script>
	</body>
</html>
